import request from '@/utils/request.js'



export const objectListService = (pid)=>{
    return request.get('/objects/list?pid='+pid)
}

export const objectAddService = (objectData, pid)=>{
    return request.post('/objects?pid='+pid,objectData)
}

export const objectDeleteService = (id,pid)=>{
    return request.delete('/objects?id='+id +'&pid='+pid)
}

export const objectUpdateService = (objectData,pid)=>{
    return request.put('/objects?pid='+pid,objectData)
}
